import { Injectable } from '@nestjs/common'
import { JwtService as BaseJwtServie } from '@nestjs/jwt/dist'

@Injectable()
export class JwtService {
   constructor(private readonly jwtService: BaseJwtServie) {}
   getToken(id: string) {
      return {
         token: 'Bearer ' + this.jwtService.sign({ id }, { expiresIn: '1d' })
      }
   }
}
